// 自定义静态类型
interface Person {
  userName: string
  age: number
  sex?: string
}

const yanzhi: Person = {
  userName: '胭脂',
  age: 18,
}

console.log(yanzhi.userName)
